package cn.wh.org.mapper;

import cn.wh.basic.mapper.BaseMapper;
import cn.wh.org.domain.Employee;
import cn.wh.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {


    //通过账户名查信息
    Employee loadByUsername(String username);
    //通过店铺id名查信息
    Employee loadByShopId(Long shopId);

    @Override
    void save(Employee employee);

    @Override
    void update(Employee employee);

    @Override
    void deleteById(Long id);

    Employee loadByLogininfoId(Long id);

    List<Employee> loadByEmp(Long shopId);
}
